import http from '@/utils/http'

export const getOrderConfirmGoodsInfo = (params) => {
	const url = 'api/order/confirm'
	return http.post(url, params)
}

export const createOrder = (orderKey, params) => {
	const url = `api/order/create/${orderKey}`
	return http.post(url, params)
}

export const getOrderList = (params) => {
	const url = 'api/order/list'
	return http.get(url, { params })
}
